﻿@model  MvcApplication.Models.DataContainer

@{
    ViewBag.Title = "Home Page";
    ViewBag.Message = "Please, enter a message and press the submit button.";    
}

<h2 align="center">@ViewBag.Message</h2>

@using (Html.BeginForm())
{ 
    <p align="center">    
        @Html.TextBoxFor(container => container.TextData)
        <input id="submitButton" type="submit" value="submit" />    
    </p>

    <p align="center">
        Last added text: @Html.DisplayTextFor(container => container.TextData)
    </p>    
    
    <p align="center">
        History <br />
        @Html.ListBox("texts", Model.TextToShow)
    </p>
}
